from django.contrib import admin
from dawn.inbox.models import Message

class MessageAdmin(admin.ModelAdmin):
    list_display = ('sender', 'receiver', 'title', 'post_time', 'is_read')
    list_display_links = ('title',)
    list_filter = ('is_read',)
    search_fields = ('title', 'content',)
    
admin.site.register(Message, MessageAdmin)